#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <cstring>
#include <vector>

#define CMDFILE "data/cmd"

using namespace std;

void fillCMD(vector<string> *CMD)
{
    ifstream cmdfile(CMDFILE, ios::in);
    string cmd;
    while(getline(cmdfile, cmd))  // tant que l'on peut mettre la ligne dans "contenu"
    {
        (*CMD).push_back(cmd);  // on l'affiche
    }
}

int main(int argv, char *argc[])
{
    string cmd;
    vector<string> CMD;
    fillCMD(&CMD);
    for(int i=0;i<argv;i++)
    {
        cout << endl << argc[i];
    }
    cout << endl;
    cout << endl;
    system("pause");
    return 0;
}
